package com.action.gulimall.order.service.feign.FallBack;

import com.action.common.exception.BizCodeEnum;
import com.action.common.utils.R;
import com.action.gulimall.order.service.feign.WareFeignService;
import com.action.gulimall.order.vo.WareSkuLockVo;

import java.util.List;

/**
 * @author sl shilun217@qq.com
 * @Deacription TODO
 * @date 2021/07/03/16:48
 **/
public class WareFeignServiceFallback implements WareFeignService {
    @Override
    public R skuIdHasStock(List<Long> skuIds) {
        return R.error(BizCodeEnum.FEIGN_SERVICE_EXCEPTION.getCode(), BizCodeEnum.FEIGN_SERVICE_EXCEPTION.getMessage());
    }

    @Override
    public R orderLockStock(WareSkuLockVo lockVo) {
        return R.error(BizCodeEnum.FEIGN_SERVICE_EXCEPTION.getCode(), BizCodeEnum.FEIGN_SERVICE_EXCEPTION.getMessage());
    }

    @Override
    public R getFare(Long addrId) {
        return R.error(BizCodeEnum.FEIGN_SERVICE_EXCEPTION.getCode(), BizCodeEnum.FEIGN_SERVICE_EXCEPTION.getMessage());
    }
}
